package visualizer.graphics;

import processing.core.PImage;

public class MaskFiller {
	private int color;
	
	public MaskFiller(int color)
	{
		this.color = color;
	}
	
	public void fill(Mask m, PImage image)
	{
		image.loadPixels();
		for (Point p : m) {
			image.set(p.x, p.y, color);
		}
		image.updatePixels();
	}
}
